#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time : 2021-11-30 11:17
# @Author : huabao.tan
# @File : seek_page.py
# @Software: PyCharm

from base.base_page import BasePage
from selenium import webdriver


class SeekPage(BasePage):
    # 页面URL
    # 页面元素
    # 页面业务流程
    url = 'http://test-tds-power.cepin.com/index.html#/panel/search/panel?tab=1'
    usernames = ('xpath', '(//input[@class="el-input__inner"])[1]')
    passwords = ('xpath', '(//span[@class="guowang-checkbox"])[8]')
    buttens = ('xpath', '(//button[@type="button"])[3]')

    def seek(self, use):
        self.input(self.usernames, uses)
        self.click(self.passwords)
        self.click(self.buttens)



if __name__ == '__main__':
    driver = webdriver.Chrome()
    use = '计'
    sp = SeekPage(driver)
    sp.seek(use)
